<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2017/5/9
  Time: 14:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>

    <title>分销商销量统计</title>
    <%@ include file="/common/include-core.jsp" %>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 分销管理 <span class="c-gray en">&gt;</span> 分销商销量统计 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>


<div class="text-c">
    <form action="/distributor/distributorStatistics.html" method="post" id="searchForm">
        <input type="hidden" id="count" value="${pageInfo.total }" />
        <input type="hidden" id="page" name="page" value="${pageInfo.pageNum }" />
        <input type="hidden" id="pageSize" name="pageSize" value="${pageInfo.pageSize }" />
        <div class="Hui-article">
            <article class="cl pd-20">
                <span>开始时间：</span>
                <input type="text" name="startDate" value="${bean.startDate }" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd' })" placeholder=" 开始时间" style="width:250px" class="input-text">
                <span>结束时间：</span>
                <input type="text" name="endDate" value="${bean.endDate }" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd' })" placeholder=" 结束时间" style="width:250px" class="input-text">

                <button name="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
            </article>
        </div>
    </form>
</div>
<div class="page-container">
    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
        <tr class="text-c">
            <th width="15">序号</th>
            <th width="30">分销商名字</th>
            <th width="30">分销商编码</th>
            <th width="40">销售数量</th>
            <th width="40">销售金额</th>
        </tr>
        </thead>
        <tbody>
            <c:forEach items="${pageInfo.list}" var="item" varStatus="index">
                <tr class="text-c">
                    <td>${index.index+1}</td>
                    <td>${item.name}</td>
                    <td>${item.distributor_code}</td>
                    <td>${item.sellerAmount}</td>
                    <td>
                        <fmt:formatNumber value="${item.sellerPrice/100}" type="currency"/>
                    </td>
                </tr>
            </c:forEach>

            <tr class="text-c">
                <td>合计：</td>
                <td>销售数量</td>
                <td>${StatisticsALl.sellerAmount}</td>
                <td>
                    销售金额
                </td>
                <td><fmt:formatNumber value="${StatisticsALl.sellerPrice/100}" type="currency"/></td>
            </tr>
        </tbody>
    </table>
    <div class="ui-page tr mt10" style="float: right;margin-top: 10px;margin-bottom: 10px"></div>
</div>
</body>
</html>
<script type="text/javascript" src="/static/js/expressInfo/expressInfoAdd.js"></script>
<script type="text/javascript" src="/static/js/apply/applyList.js"></script>
<%@ include file="/common/include-footer.jsp" %>